ordered
{dplyr}
Create an ordered factor
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
min
{base}
Get minimum of a vector
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
select
{dplyr}
Select columns from a tibble/data frame
prop.test
{stats}
Test of Equal or Given Proportions
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
write_dta
NA
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
sum
{base}
Get sum of numeric values or a vector
median
{stats}
Get median of a vector
sd
{stats}
Get standard deviation of a vector
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
with
{base}
evaluate expression in the context of a data frame
desc
{dplyr}
Arrange in descending order
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
complete.cases
{stats}
Find Complete Cases
levels
{base}
Get levels of a factor
mean
{base}
Get mean of a vector
filter
{dplyr}
Filter out rows of a data frame according to logical vector
summarize
NA
data.frame
{base}
Create a data.frame from vectors
slice
{dplyr}
Subset rows using their positions
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
ifelse
{base}
Return a or b depending on the value of test
hist
{graphics}
Plot a simple histogram
ungroup
{dplyr}
Resolve grouping created with “group_by”
summary
{base}
Obtain summary statistics or detailed regression output
as.numeric
{base}
Coerce a vector to numeric
read_dta
{haven}
Read a .dta file (Stata data)
cut
{base}
Convert Numeric to Factor
write.csv
{utils}
write a csv file to a data frame
head
{utils}
Show first 5 rows of a data frame
n
{dplyr}
The number of observations in the current group.
setwd
{base}
Set Working Directory
labs
{GGPLOT2}
Customise labels in GGPLOT2
as.character
{base}
Coerce a vector to character
var
{stats}
Calculate variance
is.na
{base}
Check if a value is NA/elements of vector are NA
read_excel
{readxl}
Read an Excel file
seq
{base}
Create a sequence
str
{utils}
Get the structure of an R object
c
{base}
Combine values/vectors into a vector
library
{base}
Load an R package
boxplot
{graphics}
Plot a simple box plot
names
{base}
Retrieve names of a list/vector
separate
{dplyr}
Separate a character column into multiple columns
save
{base}
Writes an external representation of R objects to the specified file.
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
range
{base}
Return range of values
geom_histogram
{GGPLOT2}
Generates a histogram
ggplot
{GGPLOT2}
Create a ggplot graph
spread
{tidyr}
Spread a key-value pair across multiple columns
max
{base}
Get maximum of a vector
mutate
{dplyr}
Modify/create a column in a data frame
factor
{base}
Create a factor
recode
{dplyr}
Recode a variable
The end!